<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>获取我的联系方式</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Noto Sans SC', sans-serif;
            background: linear-gradient(135deg, #0c1445, #1a237e, #311b92);
            color: #fff;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            overflow-x: hidden;
            position: relative;
        }

        /* 星空背景效果 */
        .stars {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: -1;
        }

        .star {
            position: absolute;
            background-color: #fff;
            border-radius: 50%;
            animation: twinkle var(--duration, 5s) infinite var(--delay, 0s);
        }

        @keyframes twinkle {
            0%, 100% { opacity: 0.2; }
            50% { opacity: 1; }
        }

        /* 容器样式 */
        .container {
            background: rgba(25, 25, 60, 0.7);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
            padding: 40px;
            max-width: 600px;
            width: 90%;
            text-align: center;
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: transform 0.5s ease;
            margin: 20px;
        }

        .container:hover {
            transform: translateY(-10px);
        }

        /* 标题样式 */
        .title {
            font-size: 2.8rem;
            margin-bottom: 10px;
            background: linear-gradient(90deg, #ff9a9e, #fad0c4, #a1c4fd);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            position: relative;
        }

        .title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 4px;
            background: linear-gradient(90deg, #ff9a9e, #fad0c4, #a1c4fd);
            border-radius: 2px;
        }

        /* 描述文本 */
        .description {
            font-size: 1.1rem;
            margin: 25px 0 35px;
            line-height: 1.7;
            color: #d0d0ff;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        }

        /* 输入区域 */
        .input-group {
            position: relative;
            margin: 40px 0;
        }

        .question-input {
            width: 100%;
            padding: 18px 25px;
            font-size: 1.1rem;
            border: 2px solid rgba(255, 255, 255, 0.2);
            background: rgba(15, 15, 40, 0.6);
            border-radius: 50px;
            color: white;
            transition: all 0.4s ease;
            outline: none;
        }

        .question-input:focus {
            border-color: #6a67ce;
            box-shadow: 0 0 20px rgba(106, 103, 206, 0.5);
            background: rgba(20, 20, 50, 0.8);
        }

        .question-input::placeholder {
            color: rgba(255, 255, 255, 0.4);
        }

        /* 提交按钮 */
        .submit-btn {
            background: linear-gradient(45deg, #6a67ce, #9b59b6);
            color: white;
            border: none;
            padding: 16px 50px;
            font-size: 1.2rem;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.4s ease;
            margin-top: 10px;
            box-shadow: 0 5px 15px rgba(106, 103, 206, 0.4);
            position: relative;
            overflow: hidden;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .submit-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(106, 103, 206, 0.6);
        }

        .submit-btn:active {
            transform: translateY(1px);
        }

        .submit-btn i {
            margin-left: 10px;
            transition: transform 0.3s ease;
        }

        .submit-btn:hover i {
            transform: translateX(5px);
        }

        .submit-btn::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, #9b59b6, #6a67ce);
            opacity: 0;
            transition: opacity 0.4s ease;
            z-index: -1;
        }

        .submit-btn:hover::after {
            opacity: 1;
        }

        /* 结果区域 */
        .result-container {
            margin-top: 40px;
            padding: 30px;
            border-radius: 15px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            min-height: 200px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .result-content {
            font-size: 1.4rem;
            line-height: 1.6;
            text-align: center;
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.8s ease;
            color: #f8f9fe;
        }

        .result-content.show {
            opacity: 1;
            transform: translateY(0);
        }

        .confetti {
            position: absolute;
            width: 10px;
            height: 10px;
            background-color: #ff5252;
            border-radius: 50%;
            animation: fall 5s linear infinite;
            opacity: 0;
        }

        @keyframes fall {
            0% {
                transform: translateY(-100px) rotate(0deg);
                opacity: 1;
            }
            100% {
                transform: translateY(100vh) rotate(720deg);
                opacity: 0;
            }
        }

        /* 提示区域 */
        .hint {
            margin-top: 25px;
            padding: 15px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
            font-size: 0.9rem;
            color: #a0a0d0;
            border-left: 3px solid #6a67ce;
        }

        /* 页脚 */
        footer {
            margin-top: 30px;
            text-align: center;
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.9rem;
            padding: 20px;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .container {
                padding: 30px 20px;
            }
            
            .title {
                font-size: 2.2rem;
            }
            
            .description {
                font-size: 1rem;
                margin: 20px 0;
            }
            
            .question-input {
                padding: 15px 20px;
                font-size: 1rem;
            }
            
            .submit-btn {
                padding: 14px 40px;
                font-size: 1.1rem;
            }
            
            .result-content {
                font-size: 1.2rem;
            }
        }

        /* 动画效果 */
        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-20px); }
            100% { transform: translateY(0px); }
        }

        .floating {
            animation: float 6s ease-in-out infinite;
        }

        /* 粒子效果 */
        .particles {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: -1;
        }

        .particle {
            position: absolute;
            background: rgba(255, 255, 255, 0.6);
            border-radius: 50%;
            animation: float 15s infinite linear;
        }
    </style>
</head>
<body>
    <!-- 星空背景 -->
    <div class="stars" id="stars"></div>
    
    <!-- 粒子背景 -->
    <div class="particles" id="particles"></div>

    <div class="container floating">
        <h1 class="title">安全验证 Security verification</h1>
        <p class="description">请输入QSL卡上的密码来获取我的联系方式 Please enter the password on the QSL card to get my contact details</p>
        
        <div class="input-group">
            <input type="text" class="question-input" id="answerInput" placeholder="在此输入你的答案...">
        </div>
        
        <button class="submit-btn" id="submitBtn">
            提交 <i class="fas fa-paper-plane"></i>
        </button>
        
        <div class="result-container" id="resultContainer">
            <div class="result-content" id="resultContent">
                <!-- 结果将在这里显示 -->
            </div>
        </div>
    </div>

    <script>
        // 创建星空背景
        function createStars() {
            const starsContainer = document.getElementById('stars');
            const starsCount = 150;
            
            for (let i = 0; i < starsCount; i++) {
                const star = document.createElement('div');
                star.classList.add('star');
                
                // 随机大小
                const size = Math.random() * 3;
                star.style.width = `${size}px`;
                star.style.height = `${size}px`;
                
                // 随机位置
                star.style.left = `${Math.random() * 100}%`;
                star.style.top = `${Math.random() * 100}%`;
                
                // 随机动画参数
                star.style.setProperty('--duration', `${Math.random() * 5 + 3}s`);
                star.style.setProperty('--delay', `${Math.random() * 5}s`);
                
                starsContainer.appendChild(star);
            }
        }
        
        // 创建粒子背景
        function createParticles() {
            const particlesContainer = document.getElementById('particles');
            const particleCount = 30;
            
            for (let i = 0; i < particleCount; i++) {
                const particle = document.createElement('div');
                particle.classList.add('particle');
                
                // 随机大小
                const size = Math.random() * 60 + 20;
                particle.style.width = `${size}px`;
                particle.style.height = `${size}px`;
                
                // 随机位置
                particle.style.left = `${Math.random() * 100}%`;
                particle.style.top = `${Math.random() * 100}%`;
                
                // 随机颜色
                const colors = ['rgba(106, 103, 206, 0.2)', 'rgba(155, 89, 182, 0.2)', 'rgba(255, 138, 101, 0.2)'];
                particle.style.backgroundColor = colors[Math.floor(Math.random() * colors.length)];
                
                // 随机动画参数
                particle.style.animationDuration = `${Math.random() * 20 + 10}s`;
                particle.style.animationDelay = `${Math.random() * 5}s`;
                
                particlesContainer.appendChild(particle);
            }
        }
        
        // 创建庆祝彩花效果
        function createConfetti() {
            const container = document.getElementById('resultContainer');
            const colors = ['#ff5252', '#ffd740', '#69f0ae', '#40c4ff', '#7c4dff'];
            
            for (let i = 0; i < 50; i++) {
                const confetti = document.createElement('div');
                confetti.classList.add('confetti');
                
                // 随机颜色
                confetti.style.backgroundColor = colors[Math.floor(Math.random() * colors.length)];
                
                // 随机位置
                confetti.style.left = `${Math.random() * 100}%`;
                
                // 随机大小
                const size = Math.random() * 10 + 5;
                confetti.style.width = `${size}px`;
                confetti.style.height = `${size}px`;
                
                // 随机动画参数
                confetti.style.animationDuration = `${Math.random() * 3 + 2}s`;
                confetti.style.animationDelay = `${Math.random() * 1}s`;
                
                container.appendChild(confetti);
            }
        }
        
        // 验证答案
        function checkAnswer() {
            const answerInput = document.getElementById('answerInput');
            const resultContent = document.getElementById('resultContent');
            const userAnswer = answerInput.value.trim().toLowerCase();
            
            if (userAnswer === 'PhSpHHy@@$5') {
                resultContent.innerHTML = `
                    <h2>感谢您与我进行的通联</h2>
                    <h2>Thank you for your connection with me</h2>
                    <p>我的地址和联系方式：</p>
                    <p>My address and contact details are:</p>
                    <p style="margin-top: 15px; font-size: 1.1rem;">电话：19302877551 地址：中国四川省成都市锦江区汇泉南路333号凌云峰阁小区8-1-202号</p>
                    <p style="margin-top: 15px; font-size: 1.1rem;">TEL:+86 19302877551 Address：中国四川省成都市锦江区汇泉南路333号凌云峰阁小区8-1-202号</p>
                    <div style="margin-top: 20px; font-style: italic; color: #d0d0ff;">
                        "VY 73!"
                    </div>
                `;
                
                // 添加显示类以触发动画
                setTimeout(() => {
                    resultContent.classList.add('show');
                }, 100);
                
                // 创建庆祝效果
                createConfetti();
                
                // 改变容器边框颜色以示成功
                document.querySelector('.result-container').style.borderColor = '#69f0ae';
            } else {
                resultContent.innerHTML = `
                    <h2>❌ 答案错误 Wrong Answer</h2>
                    <p>请检查输入的呼号 Please check the call sign entered/p>
                    <p style="margin-top: 15px; font-size: 1rem;">提示：请使用大写字母输入 Tip: Please use capital letters</p>
                `;
                
                // 添加显示类以触发动画
                setTimeout(() => {
                    resultContent.classList.add('show');
                }, 100);
                
                // 重置为默认边框颜色
                document.querySelector('.result-container').style.borderColor = 'rgba(255, 255, 255, 0.1)';
                
                // 错误动画效果
                answerInput.animate([
                    { transform: 'translateX(0px)' },
                    { transform: 'translateX(-10px)' },
                    { transform: 'translateX(10px)' },
                    { transform: 'translateX(0px)' }
                ], {
                    duration: 500
                });
            }
        }
        
        // 初始化页面
        document.addEventListener('DOMContentLoaded', () => {
            createStars();
            createParticles();
            
            // 添加事件监听
            document.getElementById('submitBtn').addEventListener('click', checkAnswer);
            
            // 添加回车键支持
            document.getElementById('answerInput').addEventListener('keypress', (e) => {
                if (e.key === 'Enter') {
                    checkAnswer();
                }
            });
        });
    </script>
</body>
</html>